﻿<Window x:Class="HotMess.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:HotMess"
        x:Name="root" Title="Title" Height="600" Width="600" KeyDown="Window_KeyDown" KeyUp="Window_KeyUp">
    <Grid Name="mainGrid" Margin="5">
        <Grid.Resources>
            <my:BoolToShowConverter x:Key="BoolToShowConverter" />
        </Grid.Resources>
        <my:AutoScaleTextBlock x:Name="textBlockGameText" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Top" 
                   Width="{Binding ElementName=mainGrid, Path=ActualWidth}"
                   Height="{Binding ElementName=mainGrid, Path=ActualHeight}"
                   Text="{Binding ElementName=root, Path=GameLogic.GameMessage}" TextAlignment="Center" TextWrapping="Wrap"
                   Foreground="{Binding ElementName=root, Path=GameLogic.GameMessageColor}" />
        <TextBlock Name="textBlockHeldKeys" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Bottom"
                   Width="{Binding ElementName=mainGrid, Path=ActualWidth}" Height="37" Foreground="Red"
                   Text="Debug info goes here." FontSize="20" TextAlignment="Center"
                   Visibility="{Binding ElementName=root, Path=GameLogic.GameConfig.Debug, Converter={StaticResource BoolToShowConverter}}" />
    </Grid>
</Window>
